package com.quanyan.user.serviceFacade.impl;

import com.quanyan.api.APIResponse;
import com.quanyan.comment.reqeust.ReqUserCollect;
import com.quanyan.comment.reqeust.ReqUserCollectQuery;
import com.quanyan.comment.response.RespUserCollect;
import com.quanyan.comment.serviceFacade.UserCollectServiceFacade;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.user.model.vo.response.RespActivityCollect;
import com.quanyan.user.service.UserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/12.
 */
@Service("userCollectServiceFacade")
public class UserCollectServiceFacadeImpl implements UserCollectServiceFacade{

    @Autowired
    private UserCollectService userCollectService;

    @Override
    public APIResponse userCollect(ReqUserCollect reqUserCollect) {
        return userCollectService.userCollect(reqUserCollect);
    }

    @Override
    public APIResponse cancleUserCollect(ReqUserCollect reqUserCollect) {
        return userCollectService.cancelUserCollect(reqUserCollect);
    }

    @Override
    public APIResponse<PageObj<List<RespUserCollect>>> queryUserCollect(ReqUserCollectQuery reqUserCollectQuery) {
        return userCollectService.queryUserCollect(reqUserCollectQuery);
    }


    @Override
    public APIResponse<PageObj<List<Integer>>> queryUsersByBusiness(ReqUserCollectQuery reqUserCollectQuery) {
        return userCollectService.queryUsersByBusiness(reqUserCollectQuery);
    }

    @Override
    public APIResponse<Boolean> isUserCollect(ReqUserCollectQuery reqUserCollect) {
        return userCollectService.isUserCollect(reqUserCollect);
    }

    @Override
    public APIResponse batchCancelUserCollect(ReqUserCollect reqUserCollect, List<Integer> lstBusinessId) {
        return userCollectService.cancelUserCollect(reqUserCollect,lstBusinessId);
    }

    @Override
    public PageObj<List<RespUserCollect>> queryActivityCollect(ReqUserCollectQuery reqUserCollectQuery) {
        return userCollectService.queryActivityCollect(reqUserCollectQuery);
    }
}
